const mongoose = require('mongoose')
const Schema = mongoose.Schema;
const BaseModel = require('./baseModel')

/**
 * 用户模型
 * @type {mongoose.Schema}
 */
const ServerProcessLogSchema = new Schema({
  ...BaseModel,
  /**
   * 请求类型
   */
  "reqType": {type: String, default: ''},
  /**
   * 请求链接
   */
  "reqUrl": {type: String, default: ''},
  /**
   * 状态码
   */
  "statusCode": {type: String, default: ''},
  /**
   * 请求时长
   */
  "timeLength": {type: String, default: ''},
  /**
   * 请求提大小
   */
  "size": {type: String, default: ''}
});

const model = mongoose.model('ServerProcessLog', ServerProcessLogSchema, 'serverProcessLogs');

module.exports = model
